package com.forezp.web;

import com.forezp.service.TopicSend;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TopicSenderController {

    @Autowired
    private TopicSend topicSender;
     @RequestMapping("/send")
    public void send() {
         topicSender.send();
    }
    @RequestMapping("/send1")
    public void send1() {
        topicSender.send1();
    }
    @RequestMapping("/send2")
    public void send2() {
        topicSender.send2();
    }

}
